package com.example.ecommerce.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ecommerce.dto.LoginRequestDTO;
import com.example.ecommerce.dto.LoginResponseDTO;
import com.example.ecommerce.dto.UserDTO;
import com.example.ecommerce.entity.User;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface UserService extends IService<User> {

    /**
     * 登录接口
     */
    User login(LoginRequestDTO loginRequest);

    UserDTO getUserById(Long id);

    Page<UserDTO> getUserList(Integer page, Integer size, String keyword);

    UserDTO createUser(UserDTO userDTO);
    UserDTO updateUser(Long id, UserDTO userDTO);
    void deleteUser(Long id);
    UserDTO getCurrentUser();
}